package com.dz.lm.dao.accountbalance.read;

import com.dz.lm.common.utils.stereotype.ReaderRepository;
import com.dz.lm.domain.accountbalance.Accountbalance;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@ReaderRepository("readAccountbalanceDao")
public interface AccountbalanceDao {
    int deleteByPrimaryKey(Integer userId);

    int insert(Accountbalance record);

    int insertSelective(Accountbalance record);

    Accountbalance selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(Accountbalance record);

    int updateByPrimaryKey(Accountbalance record);

    //查询多个使用list，查询单个使用get开头
    List<Accountbalance> listAccountbalance(@Param("userId") int userId);
}